importStyle("router-page-tab", "/views/tab/tab.css");

const template= await M.loadHtml("/views/tab/tab.html")

export default{
        template,
        name: "tab",
        data() {
            return {

            }
        },
        methods: {

             goHome(){
                this.$router.push({
                    path:"/"
                })
             }

        },
        computed: {},
       async mounted() {
        weui.tab('#tab',{
            defaultIndex: 0,
            onChange: function(index){
                console.log(index);
            }
        });

        weui.slider('#slider', {
            step: 10,
            defaultValue: 40,
            onChange: function(percent){
                console.log(percent);
            }
        });
    },
 }


